package com.design.pattern.bridge;

/**
 * Created by Administrator on 2016/5/18.
 */
public class UrgencyMessage extends AbstactMessge {
    /**
     * 构造方法，传入实现部分的对象
     *
     * @param impl
     */
    protected UrgencyMessage(MessageImplementor impl) {
        super(impl);
    }

    @Override
    public void sendMessage(String message, String toUser) {
        message = "+加急：" + message;
        super.sendMessage(message, toUser);

        this.watch(null);
    }

    public Object watch(String messageId){
        System.out.println("Urgency Message 监控发送状态");
        return  null;
    }
}
